package com.ghost.manager
{
	import com.ghost.model.Global_data;
	import com.ghost.view.content_menu.EasyContextMenu;
	
	import flash.display.StageScaleMode;
	import flash.system.ApplicationDomain;
	import flash.system.LoaderContext;
	import flash.ui.ContextMenu;

	/**
	 * @author ghost
	 * 控制菜单
	 */	
	public class System_set
	{
		private static var inst:System_set ;
		public static function getInstance():System_set
		{
			if(inst == null)
			{
				inst = new System_set();
			}
			return inst ;
		}
		public var cn:LoaderContext;
		
		public function System_set()
		{
		}
		public function init(o:*):void
		{
			cn = new LoaderContext();
			cn.applicationDomain = ApplicationDomain.currentDomain;
			Global_data.Game_s.scaleMode = StageScaleMode.NO_SCALE;
			var menu:EasyContextMenu = new EasyContextMenu(o,true);
			menu.addCallbackMenuItem("ghost-V1.0",null,false,false,true);
		}

	}
}